﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ttbit.WorkingSpace
{

    class Resource_Text : IWorkResource
    {
        public Resource_Text(string name)
        {
            this.Name = name;
        }
        public string[] RefResource => null;

        public bool ContainsResource(string name) => false;
        public string Name
        {
            get;
            private set;
        }
        public const string TypeStr = "Text";
        public string TypeName => TypeStr;

        string _text;
        public string Text
        {
            get { return _text; }
            set { 
                _text = value;
                MarkDirty();
            }
        }

        public bool Dirty
        {
            get;
            private set;
        }
        public void MarkDirty()
        {
            Dirty = true;
        }
        public void ClearDirty()
        {
            Dirty = false;
        }
        public void Dispose()
        {
        }
    }
}
